package com.congee02.aop;

import com.congee02.aop.proxy.dynamic.Execution;
import com.congee02.aop.service.UserServiceImpl;

/**
 * @author congee(congee02 @ 163.com)
 * @date 1/26/2023 11:55 AM
 */
public class ExecutionTest {

    public static void main(String[] args) throws NoSuchMethodException {
        UserServiceImpl service = new UserServiceImpl();

        Execution execution =
                new Execution(service, "save", new Class[]{String.class}, new Object[]{"Li Hua"});
        System.out.println(execution.execute());

        new Execution(service, "printObjectAddress", null, null).execute();
    }

}
